package com.fy.common.enums;

import lombok.Getter;

/**
 * jdk1.5
 */
@Getter
public class Season {

    private final String name;

    private final String desc;

    private Season(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }


    private static final Season SPRING = new Season("春天","绿色");
    private static final Season SUMMER = new Season("夏天","红色");
    private static final Season AUTUM = new Season("秋天","黄色");
    private static final Season WINTER = new Season("冬天","白色");

    public static void main(String[] args) {
        Season spring = Season.SPRING;
        System.out.println(spring.getName());
    }
}
